package com.itheima.Demo01.Demo02;

public interface ShapePara {
    int getArea();
    int getCircumference();
}

class Circle implements ShapePara{
    public final static double PI=3.14;
    public double radius;

    public Circle() {
    }

    public Circle(double radius) {
        this.radius = radius;
    }

    public double getRadius() {
        return radius;
    }

    public void setRadius(double radius) {
        this.radius = radius;
    }

    @Override
    public int getArea() {
        return (int)(radius*radius*PI);
    }

    @Override
    public int getCircumference() {
        return (int)(radius*2*PI);
    }
}
class text{
    public static void main(String[] args) {

        Circle circle=new Circle(10);
        System.out.println("面积是"+circle.getArea());
        System.out.println("周长是"+circle.getCircumference());
    }
}